<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\MemberPortrayal
 *
 * @property int $id
 * @property int $member_id 会员
 * @property int $tag_id 标签
 * @property int $value 画像分
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \App\Models\Member $member
 * @property-read \App\Models\Tag $tag
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberPortrayal newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberPortrayal newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberPortrayal query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberPortrayal whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberPortrayal whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberPortrayal whereMemberId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberPortrayal whereTagId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberPortrayal whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\MemberPortrayal whereValue($value)
 * @mixin \Eloquent
 */
class MemberPortrayal extends Model
{
    public function member()
    {
        return $this->belongsTo(Member::class);
    }

    public function tag()
    {
        return $this->belongsTo(Tag::class);
    }
}
